package chapter11;

/**
 * Created by V5470-I5 on 2016/4/11.
 */
public class InterruptedDemo {
    public static void main(String[] args){
        Thread thread=new Thread(){
            @Override
            public void run(){
                try{
                    Thread.sleep(99999);
                }catch (InterruptedException ex){
                    System.out.println("我醒了XD");
                }
            }
        };
        thread.start();
        thread.interrupt();
    }
}
